﻿<UserControl x:Class="CodeScrapWindow.CodeScrapControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.10.0"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             Name="CodeScrapWindow"
             Background="{DynamicResource {x:Static vsfx:VsBrushes.ToolWindowBackgroundKey}}">
    <DockPanel>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition Width="4"></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <ContentControl Name="txtCode" Grid.Column="0">
                <ContentControl.InputBindings>
                    <KeyBinding Key="Enter" Modifiers="Control" Command="{Binding ExecuteCommand}" />
                </ContentControl.InputBindings>
            </ContentControl>
            <GridSplitter Grid.Column="1" Background="{DynamicResource {x:Static vsfx:VsBrushes.CommandBarGradientEndKey}}" HorizontalAlignment="Stretch"></GridSplitter>
            <TextBox Name="txtOutput" Grid.Column="2" BorderThickness="0" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Foreground="{DynamicResource {x:Static vsfx:VsBrushes.ToolWindowTextKey}}" Text="{Binding Output, UpdateSourceTrigger=PropertyChanged}" AcceptsReturn="True" AcceptsTab="True"></TextBox>
        </Grid>
    </DockPanel>
</UserControl>
